#!/bin/sh
screen -dr m1 -X -S quit
screen -dr c1 -X -S quit
sleep 10
mv ~/dst-server/dst/mods/dedicated_server_mods_setup.lua ~/dst-server/dst/mods/dedicated_server_mods_setup.lua.bak
~/dst-server/steamcmd/steamcmd.sh +login anonymous +force_install_dir ~/dst-server/dst +app_update 343050 validate +quit
mv ~/dst-server/dst/mods/dedicated_server_mods_setup.lua.bak ~/dst-server/dst/mods/dedicated_server_mods_setup.lua
echo '!!!THE SERVER HAS BEEN UPDATED!!!'
